home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / aros / dos / maxcli.c < prev    next >
C/C++ Source or Header  |  1996-09-12  |  1KB  |  59 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: maxcli.c,v 1.2 1996/08/01 17:40:55 digulla Exp $
  4.     $Log: maxcli.c,v $
  5.     Revision 1.2  1996/08/01 17:40:55  digulla
  6.     Added standard header for all files
  7.  
  8.     Desc:
  9.     Lang: english
  10. */
  11. #include <exec/execbase.h>
  12. #include <clib/exec_protos.h>
  13. #include <dos/dosextens.h>
  14.  
  15. /*****************************************************************************
  16.  
  17.     NAME */
  18.     #include <clib/dos_protos.h>
  19.  
  20.     __AROS_LH0(BPTR, MaxCli,
  21.  
  22. /*  SYNOPSIS */
  23.  
  24. /*  LOCATION */
  25.     struct DosLibrary *, DOSBase, 92, Dos)
  26.  
  27. /*  FUNCTION
  28.     Returns the highest Cli number currently in use. Since processes
  29.     may be added and removed at any time the returned value may already
  30.     be wrong.
  31.  
  32.     INPUTS
  33.  
  34.     RESULT
  35.     Maximum Cli number (_not_ the number of Clis).
  36.  
  37.     NOTES
  38.  
  39.     EXAMPLE
  40.  
  41.     BUGS
  42.  
  43.     SEE ALSO
  44.  
  45.     INTERNALS
  46.  
  47.     HISTORY
  48.     29-10-95    digulla automatically created from
  49.                 dos_lib.fd and clib/dos_protos.h
  50.  
  51. *****************************************************************************/
  52. {
  53.     __AROS_FUNC_INIT
  54.     __AROS_BASE_EXT_DECL(struct DosLibrary *,DOSBase)
  55.     
  56.     return DOSBase->dl_ProcCnt-1;
  57.     __AROS_FUNC_EXIT
  58. } /* MaxCli */
  59.